{% extends 'layouts/base.html' %}
{% block content %}

<div class="row">
    <div class="col-xs-12">
        <!-- PAGE CONTENT BEGINS -->
        <div class="row">
            <div class="col-xs-12">
                <form action="{{ url('backend/wxmessage/batch') }}" method="post">
                <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th class="center">
                                <label class="position-relative">
                                    <input type="checkbox" class="ace" />
                                    <span class="lbl"></span>
                                </label>
                            </th>
                            <th><a href="{{ url('curr_url', {'sort':'id'})}}">消息id</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mfromusername'})}}">发送者</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mtousername'})}}">接受者</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mcreatetime'})}}">产生时间</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mtype'})}}">消息类型</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mcontent'})}}">消息内容</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mpicurl'})}}">图片链接</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mmediaid'})}}">图片消息媒体id</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mformat'})}}">语音格式</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mthumbmediaid'})}}">视频消息缩略图id</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mtitle'})}}">消息标题</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mdescription'})}}">消息描述</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'murl'})}}">消息链接</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mid'})}}">微信服务器消息编号</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mstate'})}}">消息状态0为未回复</a></th>
                            <th></th>
                        </tr>
                    </thead>

                    <tbody>


                    {% for row in result %}
                    <tr>
                        <td class="center">
                            <label class="position-relative">
                                <input name="dels[]" value="{{row.id}}" type="checkbox" class="ace" />
                                <span class="lbl"></span>
                            </label>
                        </td>

                        <td> {{row.id}} </td>
                        <td> {{row.mfromusername}} </td>
                        <td> {{row.mtousername}} </td>
                        <td> {{row.mcreatetime}} </td>
                        <td> {{row.mtype}} </td>
                        <td> {{row.mcontent}} </td>
                        <td> {{row.mpicurl}} </td>
                        <td> {{row.mmediaid}} </td>
                        <td> {{row.mformat}} </td>
                        <td> {{row.mthumbmediaid}} </td>
                        <td> {{row.mtitle}} </td>
                        <td> {{row.mdescription}} </td>
                        <td> {{row.murl}} </td>
                        <td> {{row.mid}} </td>
                        <td> {{row.mstate}} </td>

                        <td>
                            <div class="hidden-sm hidden-xs btn-group">
                                <a class="btn btn-xs btn-danger adel" href="{{url('backend/wxmessage/del', {'id':row.id})}}">
                                    <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                </a>
                                <a class="btn btn-xs btn-info" href="{{url('backend/wxmessage/edit', {'id':row.id})}}">
                                    <i class="ace-icon fa fa-pencil bigger-120"></i>
                                </a>
                            </div>
                        </td>
                    </tr>
                    {% endfor %}
                    </tbody>
                </table>

                <div class="row">
                    <div class="col-xs-6"><button type="submit" class="btn btn-white btn-warning btn-bold"><i class="ace-icon fa fa-trash-o bigger-120 orange"></i>提交</button></div>
                    <div class="col-xs-6">
                        <div class="dataTables_paginate paging_bootstrap">
                            <ul class="pagination">
                                {{pagestr | raw}}
                            </ul>
                        </div>
                    </div>
                </div>
                </form>

            </div><!-- /.span -->
        </div><!-- /.row -->


    </div>
</div>

<!-- inline scripts related to this page -->
{% endblock %}
